package Initialize;
import java.util.ArrayList;

import Exceptions.InvalidArgument;
import GameElements.*;

public class InitTower {
	
	public static ArrayList<CTowerDefenseElement> CreateBuildTower()
	{
		ArrayList<CTowerDefenseElement> _tower = new ArrayList<CTowerDefenseElement>();
		CTDTower simple = new CTDTower();
		simple.setAttrange(20);
		simple.setAttrate(20);
		simple.setAudioTyp("simple");
		simple.setBuff(0);
		simple.setCost(150);
		simple.setDamage(200);
		simple.setLevel(1);
		simple.setLP(0);
		simple.setName("BuildTower 1");
		simple.setUniqueID(1);
		simple.setUpgradeCost(350);
		try {
			simple.addImmunity(new CTDImmunity("hard"));
		} catch (InvalidArgument e) {
		}
		CTDAoET aoet = new CTDAoET();
		aoet.setAttrange(10);
		aoet.setAttrate(650);
		aoet.setAudioTyp("aoe");
		aoet.setBuff(0);
		aoet.setCost(650);
		aoet.setDamage(18);
		aoet.setLevel(1);
		aoet.setLP(0);
		aoet.setName("BuildTower 2");
		aoet.setUniqueID(2);
		aoet.setUpgradeCost(950);
		aoet.setDmgtype("aoe");
		CTDAoET splash = new CTDAoET();
		splash.setAttrange(15);
		splash.setAttrate(500);
		splash.setAudioTyp("splash");
		splash.setBuff(0);
		splash.setCost(800);
		splash.setDamage(20);
		splash.setLevel(1);
		splash.setLP(0);
		splash.setName("BuildTower 3");
		splash.setUniqueID(3);
		splash.setDmgtype("splash");
		splash.setUpgradeCost(1100);
		CTDAoET slower = new CTDAoET();
		slower.setAttrange(15);
		slower.setAttrate(400);
		slower.setAudioTyp("slow");
		slower.setBuff(0);
		slower.setCost(1400);
		slower.setDamage(0);
		slower.setLevel(1);
		slower.setLP(0);
		slower.setName("BuildTower 4");
		slower.setUniqueID(4);
		slower.setDmgtype("slow");
		slower.setUpgradeCost(1500);
		CTDBuffTower buffer = new CTDBuffTower();
		buffer.setBuffrange(20);
		buffer.setBuffrate(50);
		buffer.setAudioTyp("buff");
		buffer.setBuffamount(100);
		buffer.setCost(2500);
		buffer.setBufftype("damage");
		buffer.setLP(0);
		buffer.setName("BuildTower 5");
		buffer.setUniqueID(5);
		_tower.add(simple);
		_tower.add(aoet);
		_tower.add(slower);
		_tower.add(buffer);
		_tower.add(splash);
		return _tower;
	}
}
